import tensorflow as tf
indices = [3, 5, 0, 7]
indices = tf.reshape(indices, (4, 1))
a = tf.one_hot(indices, depth=10, on_value=None, off_value=None, axis=None, dtype=None, name=None)
sess = tf.Session()
print("a is : ")
print(a)
print(sess.run(a))
b = tf.reshape(a, (4, 10))
print("a is : ")
print(sess.run(b))
